﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Tpro6Container.Class.ObjectClass
{
    public class PublicMathClass
    {
        public static void MathTime(int year, int mon, int day, int hou, int met, int sec, int timescal, out int outyear, out int outmon, out int outday, out int outhou, out int outmet, out int outsec)
        {
            DateTime newdate = new DateTime(year, mon, day, hou, met, sec);
            TimeSpan aa = new TimeSpan (0,0,timescal);
            DateTime needDate = newdate.Add(aa);
              outyear=needDate.Year;
            outmon = needDate.Month; 
            outday = needDate.Day;
            outhou= needDate.Hour;
            outmet= needDate.Minute;
            outsec = needDate.Second;
        }
    }
}
